﻿package net.wangit.demo.action;

import net.wangit.Invocation;
import net.wangit.context.ActionContext;
import net.wangit.context.ActionResult;
import net.wangit.support.ActionInterceptor;

public class DemoAI implements ActionInterceptor {

  public void intercept(ActionContext ac, Invocation invocation)
      throws Exception {
    ActionResult result = ac.getActionResult();
    result.addInfo("before: do something ...");
    invocation.invoke();
    result.addInfo("after: do something ...");
  }

}
